﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Business_AdminDefault.aspx.cs" Inherits="bianzhuo.SupportPlatform.WebUI.BzBusiness.Business_AdminDefault" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商家管理员</title>
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="js/tdcolor.js" type="text/javascript"></script>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="content">
            <ul class="breadcrumb">
                <li>
                    
                    
                </li>
                <li><a href="#">首页</a> <span class="divider">/</span></li>
                <li class="active">商家管理员</li>
            </ul>
            <div class="container">
            
               <div class="user_con">
        	<ul>
            	<li><a href="Business_AdminCreate.aspx" class="hyjj_01a">新增管理员</a></li>
            </ul>
        </div>

                <div class="cpcx_l" style="padding: 10px 15px 10px 15px;">              
                   
                </div>
                <div class="cpcx_r" style="padding: 10px 15px 10px 15px;">
                    &nbsp;&nbsp;&nbsp;&nbsp;
                      管理员名称： 
                    <input type="text" class="btn" id="txt_adminName" runat="server" maxlength="50" style="width: 100px;" />&nbsp;&nbsp;&nbsp;&nbsp;                     
                      
                        <asp:Button ID="btnQuestList" class="btn" runat="server" Text="查询"
                            OnClick="btnQuestList_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                </div>

                <div class="cl">
                    <asp:Repeater ID="RepGrid" runat="server">
                        <HeaderTemplate>
                            <table class="user_list" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <th width="25%" class="border_left">管理员登录名</th>
                        <th width="25%">添加时间</th>
                        <th width="25%">状态</th>
                        <th width="25%">操作</th>

                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td height="38" align="center" class="border_left"><%#Eval("LoginName")%>&nbsp;<%#(Convert.ToBoolean(Eval("IsBoss"))?"(超级管理员)":"") %></td>
                                <td height="38" align="center">
                                    <p><font><%#Convert.ToDateTime(Eval("AddTime")).ToShortDateString()%></font></p>
                                </td>
                                <td height="38" align="center">
                                   <%#(Eval("State").ToString()=="1"?"正常":"禁用")%>
                                </td>
                                <td height="38" align="center">
                                    <input id="Button2" type="button" class="btn_small" onclick="location='Business_AdminModify.aspx?BusAdminID=<%#Eval("BusAdminID")%>'" value="编辑" />
                                   <%if(admin.IsBoss){%>
                                    <%#Convert.ToBoolean(Eval("isBoss"))?"<span style=\"display:none;\">":"" %>
                                    <asp:Button ID="btnDelete" class="btn_small" Text="删除"
                                        OnClientClick="return confirm('你确认要删除吗？删除将不可再恢复!')" runat="server"
                                        CommandName='<%#Eval("busAdminID")%>' OnCommand="btnDeleteCommand" />                                   
                                    <%#Convert.ToBoolean(Eval("isBoss"))?"</span>":"" %>
                                      <a <%#Convert.ToBoolean(Eval("isBoss"))?"style=\"display:none;\"":"" %> class="btn_small btn-01" href="Manage/Rule.Aspx?wxID=1&AdminId=<%#Eval("busAdminID") %>">权限设置</a>
                                  
                                       <%}%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>

                <div class="czyx_pager">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="10" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" PagingButtonSpacing="0px" 
                        OnPageChanged="AspNetPager1_PageChanged">
                    </webdiyer:AspNetPager>
                </div>
            </div>

        </div>

    </form>
</body>
</html>
